package com.holystone.orca.itsm.system.service.impl;

import com.holystone.orca.itsm.system.model.SysModule;
import com.holystone.orca.itsm.system.service.SysModuleService;
import com.holystone.orca.itsm.system.service.base.BaseServiceImpl;
import com.holystone.orca.itsm.system.service.common.SysConstant;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

@Service
public class SysModuleServiceImpl extends BaseServiceImpl<SysModule> implements SysModuleService {
    @Override
    public List<SysModule> selectActiveSysModule() {
        Example emp = new Example(SysModule.class);
        emp.createCriteria().andEqualTo("state", SysConstant.STATU_ACTIVE);
        return selectByExample(emp);
    }
}
